import {
	mapState,
	mapGetters,
	mapMutations,
	mapActions
} from 'vuex';
export const mixins = {
	data() {
		return {

		};
	},
	computed: {
		...mapState('app', ['systemBarHeight'])
	},
	created() {
		this.getSysteminfo()
	},

	methods: {
		...mapMutations('app', {
			setSbHeight: 'SET_SBHEIGHT'
		}),
		getSysteminfo() {
			var that = this
			uni.getSystemInfo({
				success: res => {
					that.setSbHeight(res.statusBarHeight);
				}
			});
		}
	},
};